package com.component.api.model.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 描述：
 * 合并依据
 * @author xianggj
 * @Date 2021/11/29 13:50
 **/
@Data
@NoArgsConstructor
public class MergeColumnDTO implements Serializable {
    private static final long serialVersionUID = -1L;
    /**
     * join:左右合并,union:上下合并
     */
    public static final String JOIN = "join";
    public static final String UNION = "union";

    /**
     * left:左合并,right:右合并,union:并集合并,intersection:交集合并
     */
    public static final String LEFT = "left";
    public static final String RIGHT = "right";
    public static final String AND_SET = "union";
    public static final String INTERSECTION = "intersection";

    /**
     * 结果列
     */
    private String result;
    /**
     * 主列
     */
    private String master;
    /**
     * 副列
     */
    private String slave;

    /**
     * 在数据中的序号
     */
    private int masterIndex;
    /**
     * 在数据中的序号
     */
    private int slaveIndex;
}
